@font-face {
    font-family: 'YanksHand';
    src: url('./font/YanksHand-Plain.eot');
    src: url('./font/YanksHand-Plain.eot?#iefix') format('embedded-opentype'),
        url('./font/YanksHand-Plain.woff') format('woff'),
        url('./font/KigeliaOsmanya-Regular.woff2') format('woff2'),
        url('./font/YanksHand-Plain.ttf') format('truetype'),
        url('./font/YanksHand-Plain.svg') format('svg');
    font-weight: 600 !important;
}

@font-face {
    font-family: 'ArialMt';
    src: url('font/ArialMT.eot');
    src: url('font/ArialMT.eot') format('embedded-opentype'),
        url('font/ArialMT.woff') format('woff'),
        url('font/ArialMT.woff') format('woff2'),
        url('font/ArialMT.ttf') format('truetype'),
        url('font/ArialMT.svg') format('svg');
    font-weight: 400 !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22' /%3E%3C/svg%3E");
}


#main {
    /* overflow-x: hidden; */
    font-family: 'ArialMt';

    /* font-weight: 400; */
    font-size: 16px !important;
}


body {
    /* font-weight: 600; */
    background-color: #dd973f;
}

.top-navbar {
    background-color: #000;
    color: white;
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    top: 0;
    bottom: 20px;
    padding: 2.6%;
}

.top-navbar img.logo {
    height: 77px;
}

.top-links a {
    color: white;
    margin: 0 12px;
    font-size: 1.3rem;
    text-decoration: none;
    position: relative;
}

.top-links a:hover {
    color: #f4d67a;
}

/* Bottom Nav Buttons */
.bottom-nav {
    /* overflow: hidden; */
    /* background-color: #fff; */
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    padding: 10px 0;
    border-top: 10px solid #dd973f;
    position: relative;
    /* gap: 1%; */
    /* padding-left: 40px; */
    /* padding-right: 2%; */
    /* padding-top: 20px; */
    /* left: 10px; */
}



@media (max-width: 780px) {
    .top-links {
        display: none;
    }
}

/* #sale{} */
.wood-link {
    background: url('../assets/Comparison.png') no-repeat center center;
    background-size: 10rem;
    width: 180px;
    overflow: hidden;
    height: 90px;
    text-align: center;
    line-height: 55px;
    /* font-family: 'Comic Sans MS', cursive; */
    font-size: 1.1rem;
    text-decoration: none;
    color: #000;
    display: inline-block;
    position: relative;
    bottom: 4rem;
    /* margin-left: 20%; */
    rotate: -4deg;
    border: none;
    /* margin-left: 50px; */
}

.wood-link:hover {
    /* transform: scale(1); */
    background-image: url('../assets/Comparison red.png');
    transform: scale(1.05);
}

.logo {
    width: 21%;
    position: relative;
    /* margin-right: 10px; */
}

.logo-img {
    width: 100%;
}

@media (max-width: 768px) {
    #main {
        background-color: #dd973f;
    }

    .bottom-wood-links {
        position: static;
        transform: none;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
    }

    .bottom-nav {
        display: none;
    }

    .bottom-nav-mobile {

        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 10px;
        /* margin-left: 20px; */
        /* font-size: large; */
    }

    .text-decoration-underline:hover {
        text-decoration: underline;
    }

    .wood-link {
        /* width: 15px; */
    }

    .wood-link:hover {
        width: 160px;
    }

    .logo {
        width: 55%;
    }
}


#main {
    width: 100%;
    max-width: 1140px;
    margin: auto;
    background-color: white;
}



#content {
    background-color: white;

}

.top-links {
    margin-bottom: 3%;
    /* padding-bottom: 1%; */
    position: relative;

}

.top-links-img {
    /* padding:5px; */
    /* padding: 4px; */
    margin: 0;
    width: 1.5rem;
    /* height: 10%; */
}


.navbar-toggler-icon {
    width: 2.4rem;
    height: 2.4rem;
}

#sale {
    background-image: url('../assets/For Sale Black.png');
    /* width: 170px; */
    height: 90px;
}

#benefits {
    background-image: url('../assets/benifits-Png-black.png');
    height: 90px;
}

#history {
    background-image: url('../assets/History-black.png');
    height: 90px;
}

#sale:hover {
    background-image: url('../assets/For Sale Red.png');
}

#benefits:hover {
    background-image: url('../assets/Benifits-Png-red.png');
}

#history:hover {
    background-image: url('../assets/History-red.png');
    height: 90px;
}

.text-decoration-none:hover {
    text-decoration: underline;
}

.bottom-link:hover {
    text-decoration: underline;
}

.main-content {
    padding-left: 3.5125rem;
    position: relative;
    bottom: 3rem;
}

/* Footer styles */
.footer-nav {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    white-space: nowrap;
    overflow-x: auto;
}

.page-head {
    font-family: 'YanksHand';
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    flex-wrap: wrap;
    transition: all 0.2s;
}
.footer-nav a:hover{
    font-size: 1.001rem;
    color: #d0791d;
}
.footer-nav a::before {
    content: '';
    display: inline-block;
    background-image: url('../assets/arrow.gif');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    font-size: 16px;
}

.footer-bottom {
    /* background-color: #b87329; */
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 8px 10px;
    background-color: #b87329;
    ;
    font-weight: 600;
    margin-bottom: 1%;
}

.footer-container {
    border-top: 12px solid #b87329;
    max-width: 1140px;
    width: 100%;
    margin: auto;
    top: 0;
    position: relative;
    /* bottom: 2rem; */

}

.tagline {
    /* padding-top: 20px; */
    justify-content: center;
    padding-bottom: 20px;
}

/* Make nav scrollable on small screens */
@media (max-width: 780px) {
    .tagline-img {
        width: 100%;
        padding: 5px;
        padding-bottom: 20px;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: start;
        padding: 0 1rem;
        /* gap: 10px; */
    }

    .footer-nav a {
        flex: 0 0 calc(50% - 10px);
        text-align: center;
        margin: 5px 0;
        text-align: justify;
        /* padding: 10px; */
    }

    .page-head {
        position: static;
        padding-top: 2rem;
    }
     .main-content{
        padding-left: 1.2rem !important;
        padding-right: 1.3rem !important;
    }
}
@media (max-width: 480px) {
    .footer-nav a {
        flex: 0 0 calc(50% - 5px);
        font-size: 14px;
        /* padding: 8px; */
        text-align: justify;
    }
    .footer-nav{
        justify-content: start;
    }
    
    .footer-nav a::before {
        width: 16px;
        height: 16px;
    }
   .main-content{
        padding-left: 1.2rem !important;
        padding-right: 1.3rem !important;
    }
    
}
#mobileMenu{
    gap:0;
    top: 0;

}


.sidebar {
  color: #650c1a;
  font-weight: bold;
}

.sidebar a {
  display: block;
  padding: 6% 0;
  color: #72323c;
  text-decoration: none;
  font-size: 1rem;
}

.com-sidebar a{
	border: 2px solid;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.2;
    border-radius: 2px;
}

.com-sidebar a{
	border: 2px solid;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.2;
    border-radius: 2px;
}
.sidebar a:hover {
 	background:#f1f1f1;
}

/* Existing table and other styles unchanged */
.table thead th,
.table td {
  vertical-align: middle;
  text-align: center;
  background: transparent !important;
 
}

.main-text {
  text-align: justify;
}

@media (max-width: 768px) {
  .sidebar {
    margin-bottom: 20px;
  }
}

.table-bordered {
  border: 1px solid #f9e2a5;
}

td {
  padding: 1rem !important;
}

th, tr {
  border-color: #f9e2a5;
}

#content-area {
  background: url('../images/cowbg.gif') no-repeat center center;
  background-size: contain;
  position: relative;
}

.overlay-wrapper {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
}

table, td, tr, th {
  background-color: transparent !important;
}

p {
  font-size: 14px;
}

html {
  scroll-behavior: smooth;
}

.section-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 2rem;
  text-align: center;
}

.price-summary p {
  margin: 0.25rem 0;
}

.year-tab {
  cursor: pointer;
  margin-right: 10px;
  color: #000;
}

.year-tab:hover {
  text-decoration: underline;
}

table, td, th {
  border: 2px solid #ffcc99 !important;
}

.sales-table thead tr {
  background-color: #cc9867 !important;
}

.sidebar-links {
  display: block;
}

@media (max-width: 768.98px) {
  .sidebar {
    width: 100%;
  }
  #com{
   grid-area: auto;
  }

  .sidebar-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr) ;
    gap: 10px;
    text-align: center;
  }

  .sidebar a {
    padding: 9px;
    font-size: 12px;
    border: 2px solid;
    align-items: center;
    display: flex;
    justify-content: center;
  }

  .sidebar-links a {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.5s ease-out forwards;
  }

  .sidebar-links a:nth-child(1) { animation-delay: 0.1s; }
  .sidebar-links a:nth-child(2) { animation-delay: 0.2s; }
  .sidebar-links a:nth-child(3) { animation-delay: 0.3s; }
  .sidebar-links a:nth-child(4) { animation-delay: 0.4s; }
  .sidebar-links a:nth-child(5) { animation-delay: 0.5s; }
  .sidebar-links a:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* New Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Apply animations to sections */
#comparison1, #comparison2, #comparison3, #comparison4 {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

/* Staggered animation for table rows */
.table tbody tr {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.table tbody tr:nth-child(1) { animation-delay: 0.2s; }
.table tbody tr:nth-child(2) { animation-delay: 0.3s; }
.table tbody tr:nth-child(3) { animation-delay: 0.4s; }
.table tbody tr:nth-child(4) { animation-delay: 0.5s; }
.table tbody tr:nth-child(5) { animation-delay: 0.6s; }
.table tbody tr:nth-child(6) { animation-delay: 0.7s; }
.table tbody tr:nth-child(7) { animation-delay: 0.8s; }

/* Hover animation for table rows */
.table tbody tr:hover {
  background-color: rgba(255, 204, 153, 0.2) !important;
  transition: background-color 0.3s ease;
}

/* Section title animation */
.section-title {
  opacity: 0;
  animation: scaleUp 0.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* Ensure animations trigger on scroll */
[data-animate] {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  animation-play-state: running;
}



/* Ourherd.css for ourherd.php page  */
.cattle-item {
            background: #fff;
            padding: 15px;
            /* border: 1px solid #ddd; */
        }
     
        .cattle-image {
            max-width: 200px;
            height: auto;
			width: 100%;
        }
        
        .cattle-name {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 5px;
            color: #eb1b45;
        }
        
        .cattle-price {
            font-size: 1.1rem;
            margin-bottom: 5px;
        }
        
        .cattle-parents, 
        .cattle-birth, 
        .cattle-expired, 
        .cattle-description {
            margin-bottom: 0 !important;
            font-size: 0.95rem;
        }
		
		 .cattle-description {
		 	margin-top:10px;
		 }
        
        .more-details-link {
            text-decoration: none;
            font-size: 0.9rem;
            color: #dc3545 !important;
        }
        
        .more-details-link:hover {
            text-decoration: underline;
        }
        
        .cattle-separator {
            margin: 20px 0;
        }
        
        @media (max-width: 768px) {
            .cattle-item {
                padding: 10px;
            }
              .main-text{
            padding-top: 14px;
        }
            
            .cattle-image {
                margin-bottom: 15px;
            }
        }



        /* display.css for all sale details pages */
        .bull-entry img {
    max-width: 100%;
    height: auto;
}

.bull-entry h5 {
    color: #ec123eff;;
    font-weight: bold;
    margin-bottom: 4px;
}

.bull-entry a {
    color: #c00;
    font-size: 0.85rem;
    text-decoration: none;
}

.bull-entry {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.bull-entry img.bull-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

.sale-content {
    margin-left: 1rem;
    margin-right: 1rem;
}

h6 {
    color: #ec123eff;;
}

.anc {
    color: #ec123eff !important;
}

@media (min-width: 768px) {
    .bull-entry img.bull-img {
        max-height: 180px;
    }
    .sale-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .bull-entry img.bull-img {
        max-height: 250px;
    }
    
    /* Align cards to the left on mobile */
    .bull-entry {
        margin-left: 0 !important;
        margin-right: auto !important;
        margin-bottom: 25px !important;
    }
    
    /* Override Bootstrap row margins */
    .bull-entry.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* For tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .bull-entry {
        margin-left: 0 !important;
        margin-right: auto !important;
        margin-bottom: 25px !important;
    }
    
    .bull-entry.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* contact.css for contact.php page */
  .contact-card {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .contact-card:hover {
            transform: translateY(-5px);
        }

        .contact-info {
            /* background: linear-gradient(135deg, #dd973f 0%, #c8862f 100%); */
            color: white;
            padding: 40px 30px;
            text-align: center;
        }

        .contact-info h2 {
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .contact-info p {
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .contact-detail {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255,255,255,0.1);
            border-radius: 8px;
            text-align: left;
            /* flex-wrap: wrap;
            align-content: start; */
        }

        .contact-detail i {
            margin-right: 15px;
            width: 20px;
        }
        .contact-detail a:hover {
           color: #d0791d;
        }

        .contact-form {
            padding: 40px 30px;
        }

        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 12px 15px;
            transition: border-color 0.3s ease;
        }

        .form-control:focus {
            border-color: #dd973f;
            box-shadow: 0 0 0 3px rgba(221,151,63,0.1);
        }

        .btn-submit {
            background: #25274d;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            transition: all 0.3s ease;
            width: 100%;
        }

        .btn-submit:hover {
            background: #1a1c33;
            transform: translateY(-2px);
        }
        

        .fade-in {
            animation: fadeIn 0.6s ease-in;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 768px) {
            .contact-info, .contact-form {
                padding: 30px 20px;
            }
            
            .contact-detail {
                justify-content: center;
                text-align: center;
            }
        }
        @media (max-width: 1200px) {
            .contact-info div{
                /* position: static; */
                right: 0 !important;
            }
        }
        .left{
 background: linear-gradient(135deg, #dd973f 0%, #c8862f 100%);
        }


        /* home.css for index.php page */
        .sidebar-img {
    width: 100%;
    height: 25%;
    margin-bottom: 1rem;
}

.content-wrapper {
    /* background-color: #fff; */
    /* padding: 2rem; */
}

#main {
    /* font-size: 14px; */
    /* font-weight: 600; */
    color: black;
}

.home {
    padding-left: 2.3125rem;
    position: relative;
    bottom: 3rem;
}

.tagline {
    padding-top: 20px;
    justify-content: center;
}

@media (max-width: 780px) {
    .home {
        position: static;
        padding-top: 39px;
    }

    .tagline-img {
        width: 100%;
        padding-bottom: 20px;
    }
    .main-content{
        margin-top: 35px !important;
    }
    .table thead th,
.table td {
     min-width: 140px; 
}
}
@media (max-width: 1000px) {
        .table thead th,
.table td {
     min-width: 130px; 
}
}
figcaption {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: -0.5rem;
}

.nowrap {
    white-space: nowrap;
}

@media (max-width: 480px) {
.main-content {
        margin-top: 30px !important;
}
.table thead th,
.table td {
     min-width: 150px; 
}
}
@media (min-width:780PX) {
    .his{
    padding: 0 5px 0 5px;
    margin: 0 5px 0 5px;
}
}
